const useDataType = (data, type) => {
  const t = Object.prototype.toString.call(data).split(" ");
  const t1 = t[1].split("]");
  const t2 = t1[0].toLowerCase();
  if (type) {
    return t2 === type;
  }
  return t1[0].toLowerCase();
};
export {
  useDataType as default
};
